#include <stdio.h>

int main(void) {
    int n, i, a, sum;
    while (printf("Enter n: "),scanf("%d", &n) != _IOFBF) {
        sum = 0;
        for (i = 1; i <= n; i++) {
            printf("Enter Number %d: ", i);
            scanf("%d", &a);
            sum = sum + a;
        }
        printf("%d\n", sum);
    }

}
